<?php/*
Pro Clan Manager is a website manager for multiplayer game teams. Pro Clan manager was designed and built by Andrew Fenn.
Copyright (C) 2002 Andrew Fenn

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

/* How to set-up your module to be uninstalled - This file is run when the user clicks uninstall in the modules section.
You should always have an install and uninstall file in your mod this way your module can be installed and uninstalled very quickly.
*/


if (URANK_ADMIN == 1) /* Security check */
{

/*
$uninstall == Your modules id

Below is a mysql query that will delete the information in the modules table. This will take your module off the list */


$sql = "DELETE FROM ".MYSQL_PREFIX."_modules WHERE m_id = '".$uninstall."'";
mysql_query($sql, CONNECT);

/* Whenever you make, add, change anything from a mysql table use the constant "MYSQL_PREFIX" which will give you the 
table prefix the user wants to use. 

The CONNECT constant is the mysql connection which is used through out the script.
*/

/* DELETEING RANKS - Below here you should delete any ranks you added to pcm. */
$sql = "DELETE FROM ".MYSQL_PREFIX."_rank_var WHERE m_id ='".$uninstall."'";
mysql_query($sql, CONNECT);


/* DELETING YOUR MENU LINKS - This is where you delete your menus links */

$sql = "DELETE FROM ".MYSQL_PREFIX."_menu WHERE m_id ='".$uninstall."'";
mysql_query($sql, CONNECT);

/* ANY OTHER TABLES- Below here you should delete any other tables that you added to pcm */


}
?>